"""
订单申请售后服务--补发申请
"""
from api.base import BaseBuyerApi


# class AfterSaleApi(BaseBuyerApi):
#     def __init__(self):
#         self.super().__init__()
#         self.url = f"{self.host}/after-sales/apply/return/goods"
#         self.data = {
#
#         }

class AfterSaleApi(BaseBuyerApi):
    """订单申请售后服务--补发申请"""
    def __init__(self,order_sn,sku_id):
        super().__init__()
        self.url = f"{self.host}/after-sales/apply/replace/goods"
        self.method = "POST"
        self.data = {
            "order_sn": order_sn,
            "reason": "其他",
            "problem_desc": "数量缺少",
            "apply_vouchers": "",
            "return_num": 1,
            "sku_id": sku_id,
            "ship_name": "罗华",
            "ship_mobile": "15723236309",
            "ship_addr": "1111", "images": ""
        }
